import {createApp} from 'vue'
import App from './App.vue'
import router from './router'
import installElementPlus from './plugins/element'
// 引入iconfont
import './assets/font/iconfont.css'
// 引入全局样式
import './assets/css/global.css'
// 导入axios
import axios from 'axios'

const app = createApp(App)
// 挂载axios
app.config.globalProperties.$http = axios;
// 设置访问根路径
axios.defaults.baseURL = "http://localhost:9000"
installElementPlus(app)
app.use(router).mount('#app')

